From: Florian Müllner Date: Wed, 25 Feb 2015 17:08:53 +0000 (+0100) Subject: messageTray: Fix actor visibility X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1633 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5f5dc8327f4e719c5d9176423240aba5cda602ac;p=gnome-shell.git messageTray: Fix actor visibility The actor is supposed to be hidden while no notification banner is displayed, and in addition to that when banners are temporarily blocked (because the calendar is open). However the current code always shows the actor when banners are not blocked, fix that. https://bugzilla.gnome.org/show_bug.cgi?id=744912 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 149943c2f..139b165fc 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1796,7 +1796,7 @@ const MessageTray = new Lang.Class({ // _updateState() figures out what (if anything) needs to be done // at the present time. _updateState: function() { - this.actor.visible = !this._bannerBlocked; + this.actor.visible = !this._bannerBlocked && this._banner != null; if (this._bannerBlocked) return;